module.exports = [
  {
    url: '/public/client_code/check.*',
    type: 'get',
    response: config => {
      return {
        code: 200,
        param: false,
        msg: 'success'
      }
    }
  },

  {
    url: '/oauth/social/list',
    type: 'get',
    response: config => {
      return {
        code: 200,
        param: [],
        msg: 'success'
      }
    }
  },

  {
    url: '/authentication/doLogin',
    type: 'post',
    response: config => {
      return {
        code: 200,
        param: {
          value: '12345678',
        },
        msg: 'success'
      }
    }
  },

  {
    url: '/logout',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        msg: 'success'
      }
    }
  },

  {
    url: '/api/login/info',
    type: 'get',
    response: config => {
      return {
        code: 200,
        param: {
          user: {
            userId: 1,
            loginName: 'admin',
            userName: '管理员',
            gender: '0'
          },
          permissions: ['*'],
          tagsView: true
        }
      }
    }
  }
]
